package team.seekers.hula.record.mind.entity.dao;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import team.seekers.hula.common.entity.enums.MindTypeEnum;

/**
 * <p>
 * 一个输出，可以是提出一个问题、提出一个观点、写出一个回答、写一个flomo
 * </p>
 *
 * @author hbc
 * @since 2021-02-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Mind对象", description="一个输出，可以是提出一个问题、提出一个观点、写出一个回答、写一个flomo")
@TableName(value = "mind")
public class MindDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @JsonValue
    private MindTypeEnum type;

    @ApiModelProperty(value = "指向一个问题或者一个观点等等")
    private String linkId;

    @ApiModelProperty(value = "如果是一个小tip则直接放在这里")
    private String content;

    @ApiModelProperty(value = "指向mind的发出者")
    private String userId;

    @ApiModelProperty(value = "可见性")
    private Integer visibility;

    @TableLogic
    private Integer isDeleted;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;





}
